package cn.ex;

public class Sum {
    int n;
    float f() {
        float sum = 0;
        for (int i = 1; i <= n; i++) {
            sum += i;
        }
        return sum;
    }
}
